<?php
/**
 * Created by PhpStorm.
 * User: zhao
 * Date: 2018/5/31
 * Time: 16:29
 */

namespace App\Obersvers;


use App\Models\BalanceRecord;

class BalanceRecordObersver
{
    public function created(BalanceRecord $record)
    {
        \DB::table('wxuser_mcard')->where('id_wxuser_mcard',$record->id_wxuser_mcard)
            ->increment('remain_cash',$record->value);
    }
}